﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Controls_ucRight : System.Web.UI.UserControl
{
    BUS_Advertise objA = new BUS_Advertise();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Visits();
            Doitac(1);
        }
    }
    protected void Visits()
    {
        lblTotalHit.Text = Application.Get("TotalHit").ToString();
        lblOnline.Text = Application.Get("Online").ToString();
    }
    public void Doitac(int position)
    {
        rptdoitac.DataSource = objA.BUS_Advertise_getImagesByPosition(position);
        rptdoitac.DataBind();
    }
}